package com.googlecode.skald.server.demo;

/**
 * The degree to which an action is afforded: NOT, WEAKLY, and STRONGLY.
 * 
 * @author Zach Tomaszewski
 */
public enum Afforded {
  NOT, WEAKLY, STRONGLY;
  
  /** NOT is false and all others are true. */
  public boolean toBoolean() {
    return this != NOT;
  }
  
  /** Same as {@link #toBoolean()} */ 
  public boolean isAfforded() {
    return this.toBoolean(); 
  }
}
